package homework04;

public class Test extends Thread {
	
	static int sum;
	private int num;
	
	public Test(int n) {
		num = n;
		
	}
	@Override
	public void run() {
		int K = 0;
		for(int i = 0;i < 10;i++) {
			K = K + num + i;
			System.out.println(num + "+" + (num + 1) + "+" + (num + 2) + "+" + (num + 3) + "+" + (num + 4)
					+ "+" + (num + 5) + "+" + (num + 6) + "+" + (num + 7) + "+" + (num + 8) + "+" + (num + 9)
					+ "=" + K);;
		}
	}

	

}
